import axios from '../utils/request' // 引入axios网络请求方法

// 用户已选频道
export const userChannel = () => axios({
  url: '/v1_0/user/channels'
})

// 用户所有频道
export const allChannel = () => axios({
  url: '/v1_0/channels'
})

// 更新频道
export const putChannel = data => axios({
  url: '/v1_0/user/channels',
  method: 'PUT',
  data
})
// 首页文章列表
export const getArticleList = (params) => axios({
  url: '/v1_1/articles',
  params
})

// 文章-不感兴趣
/// v1_0/article/dislikes
export const dislikes = data => axios({
  url: '/v1_0/article/dislikes',
  method: 'POST',
  data
})

// 文章- 举报
export const reports = data => axios({
  url: '/v1_0/article/reports',
  method: 'POST',
  data
})
